package cn.kgc.vueebook2.service;

import cn.kgc.vueebook2.pojo.Entry;
import com.github.pagehelper.PageInfo;

/**
 * @author shkstart
 * @create 2020-05-18 16:38
 */

public interface EntryService {
    //查询所有
    public PageInfo<Entry> selectAllEntry(Integer pageSize, Integer pageNum, Integer categoryId);
    //增加
    public Integer addEntry(Entry entry);
    //删除
    public Integer deleteEntry(Integer id);
    //根据id查询
    public Entry selectById(Integer id);
    //修改
    public Integer update(Entry entry);

}
